how to create numpy array from scratch